let handler = {
    get: function (target, property, receiver) {
        console.log(target, property, receiver, 'GET');
        return 10;
    },
    set: function (target, property, v, rec) {
        let A = new Date();
        console.log(target, property, v, rec, 'SET');
        return true;
    }
}
let porxyObj = new Proxy({
    A: 1
}, handler);
//    porxyObj.a = 1;

// 模拟获取数据
let TimeObj = null;
TimeObj = setInterval(() => {
    porxyObj.A = 2;
    clearInterval(TimeObj);
}, 1500)
console.log(porxyObj.a, 'porxyObj', 'A' in porxyObj);